package com.itheima.day11.myOtherio.test1;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

public class ObjectInputStreamTest {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("myCode\\src\\com\\itheima\\day11\\g.txt"));
        User u = (User) ois.readObject();
        System.out.println(u);
    }
}
